﻿@model ZealousTTS.Web.ViewModels.PrioritiyViewModel
@using ZealousTTS.Web.Utility;

@{
	String pageTitle = "Edit Prioritiy";
    if (Model != null && Model.ID == 0)
    {             
        pageTitle = "Add New Prioritiy";
    }
    ViewBag.Title = Html.GetPageTitle(pageTitle);    
   // Layout = "~/Views/Shared/_LayoutPrivate.cshtml";   
}

<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>
        Add/Edit Prioritiy Information
    </div>
</div>


@*@Html.JavaScript("jquery.validate.min.js", Url)
@Html.JavaScript("jquery.validate.unobtrusive.min.js", Url)*@

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

	if (Model == null)
    {
        @: @Html.ErrorMessageBox("Sorry! Requested Prioritiy was not found for edit.")
    }
	else
	{
		<div class="jb-page-content">		    

			@Html.HiddenFor(model => model.ID)

			<div class="editor-label">
				@Html.LabelFor(model => model.Name)
			</div>
			<div class="editor-field">
				@Html.EditorFor(model => model.Name)
				@Html.ValidationMessageFor(model => model.Name)
			</div>
			<div>
				<input type="submit" value="Save" /> @Html.ActionLink("Back to List", "List", "Project")
			</div>
		</div>
	}
}

